//package com.xinzhi.savingpot.userinfo.websocket.controller;
//
//import com.xinzhi.savingpot.userinfo.websocket.service.Websocket;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import java.io.IOException;
//
//public class WebsocketController {
//    @Autowired
//    private Websocket websocket;
//
//    @RequestMapping("/")
//    public String sendIndex(){
//        return "index.html";
//    }
//
//    @ResponseBody
//    @RequestMapping("/send")
//    public String send(String msg) throws IOException {
//        websocket.sendMessage(msg);
//        return "消息:{" + msg + "}";
//    }
//}
